﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductModify.ascx.cs"
    Inherits="BackEnd_ProductModify" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<script type="text/C#">
</script>

<table id="Table2" cellspacing="1" cellpadding="1" width="100%" border="0">
    <tr>
        <td class="toolbar" colspan="3">
            <table cellspacing="1" cellpadding="1" width="100%">
                <tr>
                    <td style="text-align: center" width="80%">
                        <b><a href="<%=Component.Sessions.UrlAdmin%>" title="">Chuyển sang trang danh sách </a>
                        </b>
                    </td>
                    <td>
                        <img src="Images/Admin/edititem.gif">
                        <asp:LinkButton ID="cmdLuu" runat="server" ValidationGroup="ProductGroup" OnClick="cmdLuu_Click" Text="Lưu"></asp:LinkButton>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lbMessage" ForeColor="Red" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="center" style="padding-top: 20px">
            <table width="100%">
                <tr>
                    <td class="holder">
                        Mục :
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="ddlCatSub" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="holder">
                        Tên VN :
                    </td>
                    <td>
                        <asp:TextBox ID="txtNameVN" runat="server" Width="580px" Height="50px" TextMode="SingleLine"
                            MaxLength="500"></asp:TextBox>&nbsp;
                             <asp:RequiredFieldValidator ID="rfvxtNameVN" runat="server" ControlToValidate="txtNameVN"
                            SetFocusOnError="True" ValidationGroup="ProductGroup"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="holder">
                        Tên EL :
                    </td>
                    <td>
                        <asp:TextBox ID="txtNameEL" runat="server" Width="580px" Height="50px" TextMode="SingleLine"
                            MaxLength="500"></asp:TextBox>&nbsp; <asp:RequiredFieldValidator ID="rfvtxtNameEL" runat="server" ControlToValidate="txtNameEL"
                            SetFocusOnError="True" ValidationGroup="ProductGroup"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="holder">
                        Hình ảnh :
                    </td>
                    <td style="text-align: left">
                        <table>
                            <tr>
                                <td class="holder" style="height: 100px; width: 100px">
                                    <table>
                                        <tr>
                                            <td align="left">
                                                Hình ảnh cũ
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <img src="<%=nameImage%>" alt="chưa có" height="100px" width="100px" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td>
                                    <table>
                                        <tr>
                                            <td align="left">
                                                Hình ảnh mới
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Image ID="imageUpload" alt="chưa có" Height="100px" Width="100px" runat="server" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td>
                                    <input id="txtImage" type="text" readonly="readonly" runat="server" />
                                    <input id="bt1" type="button" value="Image" onclick='<%=this.onclick %>' />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3" style="color: Red; font-size: 12px; text-decoration: underline; font-family: Tahoma">
                                    Yêu cầu nhập kích thước hình 100x130px để tránh tình trạng bể hình
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="holder">
                        Mô tả(VN) :
                    </td>
                    <td>
                        <FCKeditorV2:FCKeditor ID="txtDescriptionVN" ToolbarStartExpanded="false" runat="server"
                            BasePath="~/fckeditor/" Width="580px" Height="280px">
                        </FCKeditorV2:FCKeditor> 
                        
                    </td>
                </tr>
                <tr>
                    <td class="holder">
                        Mô tả(EL) :
                    </td>
                    <td>
                        <FCKeditorV2:FCKeditor ID="txtDescriptionEL" ToolbarStartExpanded="false" runat="server"
                            BasePath="~/fckeditor/" Width="580px" Height="280px">
                        </FCKeditorV2:FCKeditor> 
                    </td>
                </tr>
                <tr>
                    <td class="holder">
                        Trọng lượng :
                    </td>
                    <td>
                        <asp:TextBox ID="txtWeight" runat="server" Width="480"></asp:TextBox>
                    </td>
                </tr>
              <%--  <tr>
                    <td class="holder">
                        Giá (EL) :
                    </td>
                    <td>
                        <asp:TextBox ID="txtCostEL" runat="server" Width="480px" 
                            ontextchanged="txtCostEL_TextChanged" AutoPostBack="true" style="margin-bottom: 0px"></asp:TextBox>&nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="holder">
                        Giá (VN) :
                    </td>
                    <td>
                        <asp:Label ID="lbGiaVND" runat="server"></asp:Label>&nbsp;
                    </td>
                </tr>--%>
                
                <tr>
                    <td class="holder">
                        Sản phẩm mới :
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="ddlNewPro" runat="server">
                            <asp:ListItem>true</asp:ListItem>
                            <asp:ListItem>false</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="holder">
                        Sản phẩm bán chạy :
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="ddlBetSell" runat="server">
                            <asp:ListItem>true</asp:ListItem>
                            <asp:ListItem>false</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="holder">
                        Sản phẩm đặc biệt :
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="ddlSpePro" runat="server">
                            <asp:ListItem>true</asp:ListItem>
                            <asp:ListItem>false</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="holder">
                        Hiển thị:
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="ddlActive" runat="server">
                            <asp:ListItem>true</asp:ListItem>
                            <asp:ListItem>false</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
